import { Column, Entity } from "typeorm";
import { BaseEntity } from "../../base/entity/base";

@Entity('city_info')
export class CityInfoEntity extends BaseEntity {

    @Column({ comment: '城市名称' })
    name: string;

    @Column({ comment: '城市级别' })
    level: number;

    @Column({ comment: '城市拼音' })
    pinyin: string;

    @Column({ comment: '城市封面' })
    cover: string

    @Column({ comment: '城市简介', type: 'text' })
    intro: string;

    @Column({ comment: '城市父级ID', nullable: true })
    parentId: number;

    @Column({ comment: '城市首字母' })
    firstLetter: string;

    @Column({ comment: '城市经度' })
    centerLongitude: string;

    @Column({ comment: '城市纬度' })
    centerLatitude: string;

}